// components
import Vue from 'vue'

const requireComponent = require.context(
  './global', true, /\.vue$/
)

requireComponent.keys().forEach(fileName => {
  const componentConfig = requireComponent(fileName)
  const componentName = requireComponent(fileName).default.name
  Vue.component(componentName, componentConfig.default || componentConfig)
})
